﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using FapCore;

namespace FapCore
{
     partial class PostManual : Form
    {
         public MainForm mfrmMain;
        public PostManual()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var data = txtFormData.Text;
            if ( !string.IsNullOrEmpty( data))//when it's a post package
            {
                mfrmMain.fields = Converter.ConvertStringToField(data);
                mfrmMain.onPostingData(mfrmMain.fields, txtLink.Text, mfrmMain.iNghiepVu);
                mfrmMain.fields = null;
                Close();
                Dispose();
            }
        }
    }
}
